﻿using BCCommon;
using BCDto.OA.WorkflowTemplate.WorkflowCategory;
using BCDto.Sim.Admin.Admin;
using System;
using System.Collections.Generic;

namespace BCService.OA.WorkflowTemplate.WorkflowCategory
{
    /// <summary>
    /// 工作流分类
    /// </summary>
    public interface IWorkflowCategoryService
    {
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workflowCategoryId">工作流分类Id</param>
		bool Exists(long workflowCategoryId);
		/// <summary>
		/// 添加工作流分类
		/// </summary>
		/// <param name="requestDto">工作流分类信息</param>
		/// <param name="adminDto"></param>
		WorkflowCategoryDto Add(WorkflowCategoryRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新工作流分类
		/// </summary>
		/// <param name="adminDto"></param>
		/// <param name="putDto">工作流分类信息</param>
		WorkflowCategoryDto Update(WorkflowCategoryPutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除工作流分类
		/// </summary>
		/// <param name="workflowCategoryId">工作流分类Id</param>
		bool Delete(long workflowCategoryId);
		/// <summary>
		/// 获取工作流分类
		/// </summary>
		/// <param name="workflowCategoryId">工作流分类Id</param>
		WorkflowCategoryDto Get(long workflowCategoryId);
		/// <summary>
		/// 获取工作流分类列表
		/// </summary>
		/// <param name="companyId">公司Id</param>
		IEnumerable<WorkflowCategoryDto> GetList(int? companyId);
		/// <summary>
		/// 获取工作流分类分页列表
		/// </summary>
		/// <param name="companyId">公司Id</param>
		/// <param name="categoryName">分类名称</param>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作流分类每页数据条数</param>
		PageableList<WorkflowCategoryDto> Query(int? companyId, string categoryName, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}
